package com.oocl.euc.core.maintenance.model;

import com.oocl.euc.audit.AuditEntity;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@Table(name = "PCRS_EMAIL_TEMPLATE")
@SequenceGenerator(name = "SEQUENCE_GENERATOR", sequenceName = "EMAIL_TEMPLATE_SEQUENCE", allocationSize = 1)
@XmlRootElement
@XmlAccessorType(XmlAccessType.PROPERTY)
public class EmailTemplate extends AuditEntity {

    @Column(name = "email_template_key")
    private String emailTempalteKey;

    private String subject;

    @Lob
    private String content;
    private String description;

    @Column(name = "send_from")
    private String sendFrom;

    @Column(name = "send_to")
    @Lob
    private String sendTo;

    @Column(name = "cc")
    @Lob
    private String emailCC;

    @Column(name = "bcc")
    @Lob
    private String emailBCC;

    @Column(name = "email_template_name")
    private String emailTemplateName;

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSendFrom() {
        return sendFrom;
    }

    public void setSendFrom(String sendFrom) {
        this.sendFrom = sendFrom;
    }

    public String getSendTo() {
        return sendTo;
    }

    public void setSendTo(String sendTo) {
        this.sendTo = sendTo;
    }

    public String getEmailCC() {
        return emailCC;
    }

    public void setEmailCC(String emailCC) {
        this.emailCC = emailCC;
    }

    public String getEmailBCC() {
        return emailBCC;
    }

    public void setEmailBCC(String emailBCC) {
        this.emailBCC = emailBCC;
    }

    public String getEmailTemplateName() {
        return emailTemplateName;
    }

    public void setEmailTemplateName(String emailTemplateName) {
        this.emailTemplateName = emailTemplateName;
    }

    public String getEmailTempalteKey() {
        return emailTempalteKey;
    }

    public void setEmailTempalteKey(String emailTempalteKey) {
        this.emailTempalteKey = emailTempalteKey;
    }
}